//
//  XJGoodsDetailModel.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/5/16.
//  Copyright © 2018年 Tzyang. All rights reserved.
//  商品详情model
//  接口文档 https://www.showdoc.cc/web/#/35938840106499?page_id=224109298441912

// 商品详情model
// 评论需要一个model
// 选择规格需要一个model

#import <Foundation/Foundation.h>

@interface XJGoodsDetailModel : NSObject
/**图片*/
@property (nonatomic, copy) NSString *cover;
/**轮播图片用这个,需要根据 , 进行切割。转换后赋值给 imagesArray 这个属性*/
@property (nonatomic, copy) NSString *images;
/**轮播图图片数组 ✅ 用这个 ✅ */
@property (nonatomic, copy) NSArray *imagesArray;

/**1.商品编号,服务器返回的是code 需要使用MJ修改*/
@property(nonatomic, copy) NSString *goodNumber;
/**2.商品名称*/
@property (nonatomic, copy) NSString *name;
/**3.店铺id 跳转店铺详情要用*/
@property (nonatomic, copy) NSString *shop_id;
/**4.价格*/
@property (nonatomic, copy) NSString *price;
/**5.商场价(高价)*/
@property (nonatomic, copy) NSString *market_price;
/**6.运费*/
@property (nonatomic, copy) NSString *dispatch_fee;
/**7.库存*/
@property (nonatomic, copy) NSString *stock;

/**8.付款人数*/
@property (nonatomic, copy) NSString *pay_count;

/**9.评论人数*/
@property (nonatomic, copy) NSString *comment_count;
/**10.好评率*/
@property (nonatomic, copy) NSString *praise_rate;

/**11.是否收藏 1为收藏2为未收藏  转model后单独赋值*/
@property (nonatomic, copy) NSString *is_collection;
/**12.运费规则  转model后单独赋值*/
@property (nonatomic, copy) NSString *express;

/**13.商品类型  (1普通商品,2秒杀商品)*/
@property(nonatomic, copy) NSString *goods_type;
/**14.秒杀商品结束时间 时间戳 本地转换*/
@property (nonatomic, copy) NSString *end_time;


/**15. 商品的id 添加购物车的时候要用, 使用MJ修改*/
@property (nonatomic, copy) NSString *goodsId;
@end


// 参考数据格式
/**
 {
 "goods":{
 "is_delete":0,
 "is_recommend":1,
 "id":140,
 "praise_rate":60,
 "cost_price":0,
 "dispatch_fee":2,
 "dispatch_type":0,
 "description":"<p>无</p>",
 "detail":"无",
 "shop_id":11,
 "admin_name":"张三",
 "cover":"http://static.zertone1.com/c3QNDIRqqim9m3zhtRqpSquiAoTnuH25.png?imageView2/2/w/400/h/400",
 "create_time":1527563708563,
 "offsale_time":1531133971776,
 "audit_status":2,
 "praise_count":6,
 "goods_type":1,
 "pay_count":27,
 "name":"iOS测试商品1",
 "code":"987",
 "category_name":"土豆",
 "comment_count":10,
 "scekill_status":1,
 "dispatch_id":0,
 "images":"http://static.zertone1.com/3Q3lzuL2zA46ev3Alg6CdfH6IDxsXztJ.jpg?imageView2/2/w/1000/h/1000,http://static.zertone1.com/YS9IzfHGIYvIMf8vCqAW0P5tVqAODJoR.png?imageView2/2/w/1000/h/1000",
 "price":10,
 "active":1,
 "admin_id":1,
 "shop_name":"小何店铺",
 "shop_category_name":"视频",
 "free_goods_amount":10,
 "market_price":20,
 "shop_goods_category_id":12,
 "on_sale":1,
 "stock":597,
 "category_id":8,
 "weight":0,
 "sale_count":0,
 "click_count":0,
 "root_category_id":7
 }
 }
 */
